namespace com.qt.lib.domain.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class AddProductInfo : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.ProductInfo",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        BarCode = c.String(),
                        Code = c.String(),
                        Name = c.String(),
                        ShortName = c.String(),
                        Package = c.String(),
                        Unit = c.String(),
                        Group = c.String(),
                        Tax = c.Single(nullable: false),
                        PriceIn = c.Single(nullable: false),
                        PriceOutA = c.Single(nullable: false),
                        PriceOutB = c.Single(nullable: false),
                        PriceOutC = c.Single(nullable: false),
                        PriceOutD = c.Single(nullable: false),
                        DeleteFlag = c.Boolean(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.ProductInfo");
        }
    }
}
